let myArray=[65,66,67,68] 
for (let index = 0; index < myArray.length; index++) {
    const el = myArray[index];
  //    console.log(String.fromCharCode(el))
}
//

console.log(String.fromCharCode(68))
console.log("A".charCodeAt(0))

// -------------------------------------------------
 



// 关键字 保留字 class void 普通函数
// function myPrint(){
//     console.log("print is going")
// }
// myPrint()


//匿名函数
test=function (a){
    const content = a  //const表示“常量”，值不能修改
    const upperArr = []
    const lowerArr = []
    const otherArr = [] //创建空数组
    
    for (let index = 0; index < content.length; index++) {  //for循环语句
        const ele = content[index];
        const loc = ele.charCodeAt(0)
        if(loc>=65  && loc<=96){
            upperArr.push(ele)
        }
        else if(loc >=97 && loc<=122){
            lowerArr.push(ele)
        }
        else {
            otherArr.push(ele)
        }
}
let flag1 = upperArr.length
let flag2 = lowerArr.length
let flag3 = upperArr.concat(lowerArr).reverse().pop().length
console.log("大写字母数量" + flag1)
console.log("小写字母数量" + flag2)
console.log("翻转数量" + flag3)
}
test("Abc*HJK")